package com.wz.jiangsu.yml.bean;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @program: wz
 * @author: wangzhou
 * @create: 2023-12-10 00:07
 * @description:
 **/
@Data
@Component
@ConfigurationProperties(value="spring.redis" )
public class RedisProperties {

//    @Value("${spring.redis.host}")
    private String host;
    @Value("${spring.redis.port}")
    private String port;
//    @Value("${spring.redis.password}")
    private String password;
//    @Value("${spring.redis.database}")
    private String database;

}
